const timeOut = function() {
	let timer;

	function startTimer() {
		clearTimeout(timer);
		timer = setTimeout(function() {
			uni.showToast({
				icon: 'none',
				title: '长时间未操作，退出登录'
			})
			uni.clearStorageSync();
			uni.navigateTo({
				url: "/pages/login/login"
			})
		}, 3600000);
	}
	document.ontouchstart = startTimer;
}

export default timeOut
